package com.pzhu.user.domain.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.pzhu.user.service.template.change.ChangeLogType;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.pzhu.base.common.utils.mybatisflex.BaseEntity;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@Table("change_log")
public class ChangeLog extends BaseEntity {
    /**
     * id
     */
    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 值id
     */
    private Long valueId;
    /**
     * 版本
     */
    private int version;

    /**
     * 类型
     */
    private ChangeLogType type;

    /**
     * 历史信息
     */
    private String oldInfo;
    /**
     * 新信息
     */
    private String newInfo;
}
